package com.peanut.baby.push;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import androidx.annotation.Nullable;

import com.igexin.sdk.GTServiceManager;
import com.tencent.mars.xlog.Log;


/**
 * Created by anonymouslystudio on 2017/6/6.
 */

public class AppPushService extends Service{
    private static final String TAG = "AppPushService";

    @Override
    public void onCreate() {
        super.onCreate();
        Log.d(TAG,"onCreate");
        GTServiceManager.getInstance().onCreate(this);
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        super.onStartCommand(intent, flags, startId);
        Log.d(TAG,"onStartCommand");
        return GTServiceManager.getInstance().onStartCommand(this, intent, flags, startId);
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        Log.d(TAG,"onDestroy");
        GTServiceManager.getInstance().onDestroy();
    }

    @Override
    public void onLowMemory() {
        super.onLowMemory();
        Log.d(TAG,"onLowMemory");
        GTServiceManager.getInstance().onLowMemory();
    }

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return GTServiceManager.getInstance().onBind(intent);
    }
}
